<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>{:set('titles')}</title>
    <meta name="keywords" content="{:set('keywords')}">
    <meta name="description" content="{:set('description')}">
    {include file="header"}
    <div class="content-box pb-10">
        <div class="content">
            <div class="focusNews fn-clear">
                <div class="focusleft fn-left">
                    <div class="adbox">
                        <div class="layui-carousel" id="hdp">
                            <div carousel-item>
                                {volist name=":fun_s('html',array('open'=>1,'huandeng'=>1),'id desc',20,1)" id="vo"}
                                <div class="layui-this">
                                    <a href="{:url('index/index/html',array('id'=>$vo.id))}" target="_blank">
                                        <img src="{$vo.content|pic}" width="100%" height="100%">
                                    </a>
                                </div>
                                {/volist}
                            </div>
                        </div>
                        <script>
                            layui.use('carousel', function() {
                                var carousel = layui.carousel;
                                carousel.render({
                                    elem: '#hdp',
                                    width: '100%',
                                    height: '160px',
                                    arrow: 'always'
                                });
                            });
                        </script> 
                    </div>
                    <div class="rightlist"> 
                        {volist name=":fun_s('html',array('open'=>1,'settop'=>1),'times desc',8,1)" id="vo"}
                        <a href="{:url('index/index/html',array('id'=>$vo.id))}" title="{$vo.title}" target="_blank">{$vo.title}</a>
                        {/volist}
                    </div>
                </div>
                <div class="focuslist">
                    <div class="itemlist"> 
                        {volist name=":fun_s('html',array('open'=>1),'times desc',9,1)" id="vo"}
                        <a {if $i==1}class="title"{/if} href="{:url('index/index/html',array('id'=>$vo.id))}" title="{$vo.title}">{$vo.title}</a>
                        {/volist}
                    </div>
                </div>
                <div class="focusright fn-right">
                    <div class="newmedia">
                        <h3 class="title">新加入用户</h3>
                        <ul class="medialist fn-clear">
                            {volist name=":fun_s('member',array('open'=>1),'userid desc',9,1)" id="vo"}
                            <li class="fn-left">
                                <a href="{:url('index/user/uid',array('id'=>$vo.userid))}" target="_blank">
                                    <img src="{$vo.userhead}" alt="{$vo.username}">
                                    <p class="name" title="{$vo.username}">{$vo.username}</p>
                                </a>
                            </li>
                            {/volist}
                        </ul>
                    </div>
                </div>
            </div>
            {volist name=":fun_s('model',array('open'=>1),'px desc',80,0)" id="v"}
            <div class="ttuan_c fn-clear mb-20">
                <div class="title">
                    <div class="top-title contact-us-title"><i class="iconfont">&#xe6e7;</i>{$v.title}</div>
                    <a class="a" href="{:url('index/model/index',array('model'=>$v.name))}">更多 <i class="iconfont">&#xe600;</i></a>
                </div>
                {if $v.name=='shop'}
                {volist name=":fun_sd($v.name,array('f.open'=>1),0,'settop desc , times desc','4,false',0,'cate_m')" id="vo" empty="
                <div class='empty' align='center'>
                    <img src='/public/img/empty.png'/>
                    <p>没有更多的记录</p>
                </div>"}
                <div class="tc_item">
                    <a href="{:url('index/model/html',array('model'=>$vo.m,'id'=>$vo.id))}">
                        <div class="img">
                            <img src="{$vo.pic}" onerror="javascript:this.src='{:m()}/img/pic.jpg';">
                        </div>
                        <div class="info">
                            <p class="name">{$vo.title}</p>
                            <p class="count"><i class="iconfont">&#xe697;</i> {:fun_st('point_note',array('tid'=>$vo.id,'title'=>'付费阅读'.$vo.m))}人已购</p>
                            <p class="price"><i class="iconfont">&#xe605;</i><span>{$vo.jifen}</span>
                            </p>
                            <p class="btn"><i class="iconfont">&#xe742;</i> 去抢购</p>
                        </div>
                        {if $vo.settop==1}<div class="tj_icon">推荐</div>{/if}
                    </a>
                </div>
                {/volist}
                {elseif($v.name=='dow')}
                <div class="dow">
                    <ul class="ul">
                        {volist name=":fun_sd($v.name,array('f.open'=>1),0,'settop desc , times desc','20,false',0,'cate_m')" id="vo" empty="
                        <div class='empty' align='center'>
                            <img src='/public/img/empty.png'/>
                            <p>没有更多的记录</p>
                        </div>"}
                        <li class="item"> 
                            <a href="{:url('index/model/html',array('model'=>$vo.m,'id'=>$vo.id))}" target="_blank" class="img-box">
                                <img src="{$vo.pic}" alt="{$vo.title}" onerror="javascript:this.src='/favicon.ico';">
                            </a>
                            <div class="info"> 
                                <a href="{:url('index/model/html',array('model'=>$vo.m,'id'=>$vo.id))}" target="_blank" class="a">{$vo.title}</a>
                                <p class="other"><i class="iconfont">&#xe614;</i>{$vo.view}</p>
                            </div>
                        </li>
                        {/volist}
                    </ul>
                </div>
                {else/}
                <div class="listBox wrap">
                    <ul class="zt-list fn-clear">
                        {foreach name=":fun_S('cate_m',array('tid'=>0,'m'=>$v.name,'open'=>1,'header'=>1),'px desc','1000',1)" item="c" key="k" empty="
                        <div class='empty' align='center'>
                            <img src='/public/img/empty.png'/>
                            <p>没有更多的记录</p>
                        </div>"}
                        <li>
                            <div class="tit fn-clear">
                                <em class="fn-left">{$c.name}</em>  
                                <a class="fn-right" target="_blank" href="{:url('index/model/cate',array('alias'=>$c.alias))}">more &gt;</a>
                            </div>
                            <div class="itemlist"> 
                                {volist name=":fun_sd($v.name,array('f.open'=>1),$c['id'],'settop desc , times desc','5,false',0,'cate_m')" id="vo"}
                                <a target="_blank" href="{:url('index/model/html',array('model'=>$vo.m,'id'=>$vo.id))}" title="{$vo.title}">{$vo.title}</a>
                                {/volist}
                            </div>
                        </li>
                        {/foreach}
                    </ul>
                </div>
                {/if}
            </div>
            {/volist}
        </div>
    </div>
    {include file="footer"}